package org.gtugs.omsk.funnycats.scenes.classes;

public class FunnyScore {
	public FunnyScore() {
		super();
	}

	public void step(float dt){
		mGameLifetime += dt;
		mTimeToEnd -= dt;
		
		if(mGameLifetime > mNextTimeStamp){
			mScore += 100;
			mNextTimeStamp += 10f;
		}
	}
	
	public int getScore(){
		return mScore;
	}
	
	public void setScore(int score){
		mScore = score;
	}
	
	public float getGameLifetime(){
		return mGameLifetime;
	}
	
	public boolean isGameOver(){
		return mTimeToEnd < 0;
	}
	
	public float getTimeToEnd(){
		return mTimeToEnd;
	}
	
	public void decLifeTime(float dt){
		mTimeToEnd += dt;
	}
	
	private int mScore = 0;
	private float mTimeToEnd = 30f;
	private float mGameLifetime = 0f;
	private float mNextTimeStamp = 10f;
}
